﻿var formulaApp = {};

formulaApp.addItem = function () {
    var quant = document.getElementById('appendedInputButtons').value;
    quant += 1;
    document.getElementById('appendedInputButtons').value = quant;
}

formulaApp.minusItem = function () {
    var quant = document.getElementById('appendedInputButtons').value;
    quant -= 1;
    document.getElementById('appendedInputButtons').value = quant;
}

var totalPrice;
formulaApp.total = function () {
    var quant = document.getElementById('appendedInputButtons').value;
    var price = document.getElementById('price').value;
    totalPrice = quant * price;
}